package com.hotel.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hotel.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@AllArgsConstructor
@Data
@NoArgsConstructor
/**
 * @author zxq
 */
public class ConsumptionVO extends BaseEntity {

    /**
     * 消费id
     */
    private Long id;

    /**
     * 入住记录id
     */
    private Long checkInId;


    /**
     * 消费时间
     */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime consumptionTime;

    /**
     * 消费总金额
     */
    private BigDecimal totalPrice;

    /**
     * 项目名称,项目单价,id,数量，价格
     */
    private List<ServiceAndConsumption> serviceItem;
}
